package com.ebei.admin.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ebei.admin.model.entity.SysMenu;
import com.ebei.common.vo.MenuVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 菜单mapper
 *
 * @author crazypenguin
 * @version 1.0
 * @created 2018/4/17
 */
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    /**
     * 根据条件查询菜单
     * @param params
     * @return
     */
    Set<MenuVO> findMenus(Map<String,Object> params);

    /**
     * 通过userid查询菜单
     * @param params
     * @return
     */
    List<MenuVO> selectMenuListByUserId(Map<String,Object> params);
}